#ifndef __EDITRECT_H__
#define __EDITRECT_H__
/////////////////
//include
/////////////////
#include"Rect.h"
#include"DeviceContext.h"
/////////////////
//const
/////////////////

/////////////////
//class
/////////////////
const int RECT_SIZE = 50;
class EditRect
{
public:
	EditRect();
	~EditRect();
	void Init();
	void ContentLoad();
	void Update();
	Rect GetMoveRect()	const{return move_rect;}
	Rect GetScaleRect()	const{return scale_rect;}
	Rect GetRangeRect()	const{return Rect(move_rect.GetPos(),scale_rect.GetPos());  }
	Vector2D GetStartPos() const{return move_rect.GetPos(); }
	Vector2D GetEndPos() const{return scale_rect.GetPos(); }
	void SetStartPos(Vector2D start){move_rect	= Rect(start.x,start.y,RECT_SIZE,RECT_SIZE);}
	void SetEndPos(Vector2D end)	{scale_rect = Rect(end.x,end.y,RECT_SIZE,RECT_SIZE);}
private:
	Rect move_rect;
	Rect scale_rect;
	bool is_drag_move;
	bool is_drag_scale;
};
#endif __EDITRECT_H__
